package com.gbei.center.oauth.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * @Discription ${在此输入一句话描述此文件的作用}
 * @Author yang jun
 * @Date 2019/5/25 15:53
 */
@Data
@ApiModel
public class LoginReq implements Serializable{

    @ApiModelProperty(value = "用户名（可为手机号码或账号或身份证号码）", required = true)
    @NotBlank(message = "username 不能为空")
    private String username;

    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "password 不能为空")
    private String password;

    @ApiModelProperty(value = "应用ID", required = true)
    @NotBlank(message = "appId 不能为空")
    private String appId;

    @ApiModelProperty(value = "客户端 pc android ios", hidden = true)
    private String client;

}
